<?php
/**
 * @author Vitaly
 * Date: 24.04.12
 */
class UserModel
{
    private $id;
    private $nick;
    private $email;
    private $password;
    private $status;
    private $rating;
    private $lastUp;


    function __construct($id = null, $nick = null, $email = null, $password = null, $status = null, $rating = null, $lastUp = null)
    {
        $this->setId($id)
             ->setNick($nick)
             ->setEmail($email)
             ->setPassword($password)
             ->setStatus($status)
             ->setRating($rating)
             ->setLastUp($lastUp);
    }

    public function getEmail()
    {
        return $this->email;
    }

    public function getId()
    {
        return $this->id;
    }

    public function getNick()
    {
        return $this->nick;
    }

    public function getPassword()
    {
        return $this->password;
    }

    public function getStatus()
    {
        return $this->status;
    }

    public function setEmail($email)
    {
        $this->email = $email;
        return $this;
    }

    public function setId($id)
    {
        $this->id = $id;
        return $this;
    }

    public function setNick($nick)
    {
        $this->nick = $nick;
        return $this;
    }

    public function setPassword($password)
    {
        $this->password = $password;
        return $this;
    }

    public function setStatus($status)
    {
        $this->status = $status;
        return $this;
    }

    public function setRating($rating)
    {
        $this->rating = $rating;
        return $this;
    }

    public function getRating()
    {
        return $this->rating;
    }

    public function setLastUp($lastUp)
    {
        $this->lastUp = $lastUp;
        return $this;
    }

    public function getLastUp()
    {
        return $this->lastUp;
    }
}